package com.micangcaihang.micang.entity;

/**
 * <pre>
 *     author : Fandy
 *     e-mail : fandayonggmail@gmail.com
 *     time   : 2017/08/04
 *     desc   : EventBus传递消息总体类
 *     version: 1.0
 * </pre>
 */

public class EventCenter<T> {
    private int eventCode = -1;
    public static final int TASK_TUFT_INFO_SAVE_D = 0X1001;
    public static final int TASK_MARRIAGE_STATUS1 = 0X1002;//婚姻状态变化未婚
    public static final int TASK_MARRIAGE_STATUS2 = 0X1003;//婚姻状态变化已婚
    public static final int TASK_MARRIAGE_STATUS3 = 0X1004;//婚姻状态变化再婚
    public static final int TASK_MARRIAGE_STATUS4 = 0X1005;//婚姻状态变化离异
    public static final int TASK_MARRIAGE_STATUS5 = 0X1006;//婚姻状态变化丧偶

    private T data;

    public EventCenter(int eventCode) {
        this.eventCode = eventCode;
    }

    public EventCenter(int eventCode, T data) {
        this.eventCode = eventCode;
        this.data = data;
    }

    public int getEventCode() {
        return eventCode;
    }

    public T getData() {
        return data;
    }
}
